package testString;

public class StringMethod3 {
	public static void main(String[] args) {
		String str1="wellcome ";
		String str2="here";
		String str3="   straight   forward   ";
		String str4="basketball football pingpangball baseball";
		String[] str5=str4.split(" ");
		p(str1.concat(str2));
		p(str1.toUpperCase());
		p(str1.toUpperCase().toLowerCase());
		p(str3.trim());
		p(str3.replace(" ",""));
		p(str1.replace('l', 'L'));
		p(str1.substring(4));
		p(str1.substring(2, 6));
		for (String string : str5) {
			p(string);
		}
	}
	static void p(Object o){
		System.out.println(o);
	}

}
